Horizontal gene transfer (HGT) (or Lateral gene transfer) is how an organism gets genetic material from another organism without being the offspring of that organism.
By contrast, vertical transfer occurs when an organism gets genetic material from its ancestor, e.g., its parent or a species from which it has evolved.